package xiao.ke.activemq.jms;/**
 * @author XuXiaoK
 * @create 2019-11-27 13:33
 */

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

/**
 *@Author XiaoKe
 *@Date 2019/11/27 13:33
 *@Description TODO
 */
@Component
public class OrderConsumer {

    @JmsListener(destination = "order.queue")
    public void receiveQueue(String text) {
        System.out.println("信息" + text);
    }


}
